<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>   
    <title>修改密码</title>	
	<link rel="stylesheet" href="/css/modules.css" type="text/css"
			media="screen" />
	<link rel="stylesheet" href="/css/modules1.css" type="text/css"
			media="screen" />
		<style type="text/css">
		label{
			display:inline;
		}
		</style>
<script type="text/javascript">

function checkform(form){
	if(form.oldPassword.value==""){
		alert("旧的密码不能为空");
		return false;
	}
	if(form.password.value.length<6 || form.passwordConfirm.value.length<6){
		alert("密码的长度应大于或等于6位");
		return false;
	}
	if(form.password.value!=form.passwordConfirm.value){
		alert("您两次输入的密码不一致");
		return false;
	}
}
</script>
  </head>
  <body style="background-color:transparent">
	<h2 class="jquery_tab_title">修改密码</h2>
	<div style="padding-top:20px;">
	<s:form namespace="/control/main" action="UserManage!modifyPassword" method="post" onsubmit="return checkform(this)" theme="simple">
		<s:token />
		<table id="noborder_table" width="90%" border="0" cellspacing="0" cellpadding="0">
			
				<tr>
					<td colspan="2"><FONT color="red"><s:actionerror /></FONT></td>
				</tr>
				<tr>
				 	<td align="right"><label>手机号:</label></td>
				 	<td>${session.user.phone}</td>
				</tr>
				<tr>
				 	<td align="right"><label>姓   名:</label></td>
				 	<td><s:property value="#session.user.realname"/></td>
				</tr>
				
				<tr>
				 	<td align="right">旧密码:</td>
			 		 <td><s:password name="oldPassword"  size="30" cssClass="input-medium"/>
			 	  <div id="passwordview"></div>
			 	  </td>
				</tr>	
				<tr>
				 	<td align="right">新密码:</td>
			 	  <td><s:password name="password" size="30" cssClass="input-medium"/></td>
				</tr>
				<tr>
				 	<td align="right">密码确认:</td>
			 	  <td><s:password name="passwordConfirm" size="30" cssClass="input-medium" /></td>
				</tr>
				<tr>
				<td></td>
					<td>			
							<input type="submit" name="SYS_SET" value=" 确 定  " class="button" />
							<input type="reset" name="SYS_SET" value=" 重 填  " class="button" />					
					</td>
				</tr>
			</table>
	</s:form>	</div>
  </body>
</html>
